import {request} from "../../request";

export function getlocationById(id){
    return request({
        url:`/lswms/location/${id}`,
        method:'get'
    })
}


export function getlocationList(data){
    return request({
        url:'/lswms/location/page',
        method:'put',
        data:data
    })
}

export function putlocation(data){
    return request({
        url:'/lswms/location',
        method:'put',
        data:data
    })
}
export function postlocation(data){
    return request({
        url:'/lswms/location',
        method:'post',
        data:data
    })
}

export function deletelocation(data){
    return request({
        url:`/lswms/location`,
        method:'delete',
        data:data
    })
}
export function exportlocation(data){
    return request({
        url:`/lswms/location/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

